home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: mstave@wpo.borland.com (Matt Stave)
- Newsgroups: comp.lang.c++
- Subject: Re: Turbo C++ won't write 0Ah to file!?!?
- Date: Mon, 01 Apr 1996 20:59:49 GMT
- Organization: Borland International
- Message-ID: <4jpg5l$1js@druid.borland.com>
- References: <4jnpcg$nis@tribune.concentric.net>
- NNTP-Posting-Host: mstave2.borland.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Mike,
-
- Did you open the file in binary mode?
-
- FILE *fp;
-
- fp = fopen("file.ext","wb");
-
- (in c++ look into ios::binary)
-
-
- --- Matt
-
- mikolaj@concentric.com wrote:
-
- >Turbo C++ 3.0 won't write character 0Ah to a file, instead it writes 0Dh.
- >What's the problem? Is this a bug?
- >Thanks, Mike.
-
-
-
-